package cn.tedu.log.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("system_log")
public class Log {
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("操作模块")
    private Integer modelId;

    @ApiModelProperty("操作描述")
    private String content;

    @ApiModelProperty("操作对象ID")
    private Integer objectId;

    @ApiModelProperty("操作人ID")
    private Integer managerId;

    @ApiModelProperty("行为")
    private String act;

    @ApiModelProperty("行为作用地址")
    private String uri;

    @ApiModelProperty("操作人操作IP")
    private String ip;

    @ApiModelProperty("创建时间/操作时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
